package com.sky.service;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;

import java.util.List;

public interface ShoppingCartService {

    /**
     * @description: 添加购物车
     * @author: zhouzhijie
     * @date: 2023/11/22 9:26
     * @param: [shoppingCartDTO]
     * @return:
     **/
    void addShoppingCart(ShoppingCartDTO shoppingCartDTO);

    /**
     * @description: 查看购物车
     * @author: zhouzhijie
     * @date: 2023/11/22 15:52
     * @param: []
     * @return: 
     **/
    List<ShoppingCart> showShoppingCart();

    /**
     * @description: 清空购物车
     * @author: zhouzhijie
     * @date: 2023/11/22 16:06
     * @param: []
     * @return: 
     **/
    void cleanShoppingCart();

    /**
     * @description: 删除购物车商品
     * @author: zhouzhijie
     * @date: 2023/11/22 18:37
     * @param: [shoppingCartDTO]
     * @return: 
     **/
    void sub(ShoppingCartDTO shoppingCartDTO);
}
